Skip to content

feat(app): dial window, settings window and the OS tel: handler - #6

Merged
DeepDiver1975 merged 3 commits into
mainfrom
feat/app-windows
Oct 26, 2026
Merged

DeepDiver1975 merged 3 commits into
mainfrom
feat/app-windows

Conversation

@DeepDiver1975

@DeepDiver1975 DeepDiver1975 commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

The windows a Lagebuchführer actually sees, plus the glue that hands tel: links to them. Targets main; no stacking.

Dial window — what a tel: click opens. Small, topmost, shows the number that will follow ATD.

  • Enter = Wählen, Escape = Abbrechen. Wählen arms one second after the window opens, so an Enter meant for another program can't confirm a call.
  • Closes itself after a successful dial. Otherwise it stays open and says why: no answer (naming the audio-connection trap), port missing or busy, line busy, no dial tone.
  • Closing it while a dial is still connecting cancels the dial. On macOS a newer link replaces the open window instead of stacking a second one.
  • A refused link (*21*…#, a smuggled line break, not a tel: link) shows no number, and Wählen stays disabled.

Settings window — what opens when Wählhilfe is started on its own: Bluetooth port (with refresh), Ländervorwahl, Amtsholung, Speichern, Verbindung testen (sends AT only), Testanruf, and whether Wählhilfe opens tel: links (Als Standard festlegen / Prüfen).

Getting the link

  • Windows / Linux: the link is the first argument; each click is its own process.
  • macOS: the link arrives as an Apple event (IActivatableLifetime). The settings window opens only when no link follows the launch within 500 ms.

tel: registration

  • Windows: opens Default apps for the registered capability. Windows lets no program make itself the default; the MSI that registers the capability comes in the installer PR.
  • macOS: LSSetDefaultHandlerForURLScheme via Launch Services.
  • Linux: no registration.

Screenshots

Settings window — before (placeholder from #1) / after:

Settings window before
Settings window after

Dial window — new view, so no before. Ready / phone not answering / refused link:

Dial window ready
Dial window, phone not answering
Dial window, refused link

Tests

19 headless view tests. Enter dials, Escape closes, Enter right after opening does not dial, closing during a dial cancels it, a refused link can't be dialled, settings bind and save, Verbindung testen only probes, and every button has a screen-reader name. make clean ci: 172 tests green.

Not yet verified:

  • Against the real DL500A through System.IO.Ports; that waits for the next time in the ELW (sudo rfcomm bind 0 <MAC> 1, then Verbindung testen).
  • The Windows and macOS tel: registration; that needs the installers.

🤖 Generated with Claude Code

DeepDiver1975 and others added 3 commits October 26, 2026 22:08
A tel: link opens a small topmost window with the number: Enter dials,
Escape cancels, it closes itself after a successful dial and shows why
otherwise. Started on its own, Wählhilfe opens the settings window:
Bluetooth port, Ländervorwahl, Amtsholung, Verbindung testen, Testanruf,
and whether it opens tel: links.

The link arrives as the first argument on Windows and Linux, and as an
Apple event (IActivatableLifetime) on macOS, where the settings open only
when no link follows the launch. Windows opens the Default apps page for
the registered capability; macOS sets the handler through Launch Services;
Linux has no registration.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
A second tel: link replaces the open dial window instead of stacking
another one, so there is never more than one call waiting for a
keystroke to confirm it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
Closing the dial window — the title bar, or a newer link replacing it on
macOS — left a dial that was still connecting running behind it, so a
call could be placed from a window nobody could see any more. The window
now cancels it on close; the launch-time window also counts as the one
a newer link replaces.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
@DeepDiver1975
DeepDiver1975 merged commit 72168b4 into main Oct 26, 2026
4 checks passed
@DeepDiver1975
DeepDiver1975 deleted the feat/app-windows branch October 26, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant